package com.phone.rest.modular.bussiness.controller.front;

import com.phone.core.base.controller.BaseController;
import com.phone.core.util.CommonUtil;
import com.phone.rest.common.persistence.model.Member;
import com.phone.rest.modular.bussiness.service.IMemberSv;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController;

/**
 * Created by zengzr on 2017/10/20.
 */
@RestController
@RequestMapping("api")
public class MemberController extends BaseController {
    @Autowired
    IMemberSv memberSv;


    /**
        * @Description: 用户基本资料
        * @author zengzr
        * @date 2017/10/20
        * @version V1.0
        */
    @RequestMapping("member")
    public Object member(@RequestParam String openId){
        Member m=memberSv.selectById(openId);
        return CommonUtil.responseSuccess("查询成功",m);
    }

    /**
        * @Description: 收藏夹
        * @author zengzr
        * @date 2017/10/20
        * @version V1.0
        */



    /**
        * @Description: 积分、优惠券
        * @author zengzr
        * @date 2017/10/20
        * @version V1.0
        */
}
